package trycatch.estudo;

public class Conta {
	
	public static void main(String[] args) {
		TestaException t = new TestaException();
		
		try{
			t.sacaDinheiro(6000);
		}
		catch (ValorInvalidoException e){
			System.out.println(e.getMessage());
		}
		
		AcabaMemoria aM = new AcabaMemoria();
		
	}
}
